#define _CRT_SECURE_NO_WARNINGS 1

class Solution {
public:
    int finalValueAfterOperations(vector<string>& operations) {
        int x = 0;
        for (auto& e : operations)
        {
            x += (e[1] == '+') ? 1 : -1;
        }

        return x;
    }
};